/*
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-17 14:26:04
 * @LastEditTime: 2024-06-19 16:21:40
 */
import { PropType } from "vue";
const validColors = ['primary', 'danger', 'warning', 'success', 'info', ''] as const;
type ButtonColorType = (typeof validColors)[number];

const flexEnum = ['', 'column'] as const;
type FlexEnum = (typeof flexEnum)[number];


//按钮组件
export const props = {
  activePath:{type:String,default:''},
  onClick:{type: Function as PropType<(arg?:any) => void>,default:null},
  collapse: { type: Boolean, default: false },
  flex: {
    type: String as PropType<FlexEnum>,
    validator: (v: any) => flexEnum.includes(v),
    default: '',
  },
  isTitle:{type:Boolean,default:true},
  menuList:{type:Array<any>,default:[]}
}

